Java 11 Interview Questions and Answers
Question: What is Local-Variable Syntax for Lambda Parameters in Java 11?Answer:It allows var to be used when declaring the formal parameters of implicitly typed lambda expressions. In Java 10, Local Variable Type Inference was introduced.
Java 11, allows var to be used to declare the formal parameters of an implicitly typed lambda expression.
The examples below are illegal:
|
Is it helpful?
Yes
No
Most helpful rated by users:
- What is Java 11?
- What is Local-Variable Syntax for Lambda Parameters in Java 11?
- What is Java Mission Control in Java 11?
- What is the difference between Oracle JDK and OpenJDK?